package com.punch.user.mapper;


import com.punch.common.model.SysMenu;
import com.punch.db.mapper.SuperMapper;
import com.punch.user.model.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zlt
 * 角色菜单
 */
@Mapper
public interface SysRoleMenuMapper extends SuperMapper<SysRoleMenu> {

    /**
     * 根据角色获取菜单
     *
     * @param roleId 角色id
     * @return List<SysMenu>
     */
    List<SysMenu> selectMenuListByRoleId(@Param("roleId") Integer roleId);
}
